import request from '@/utils/request';

// 标准套餐列表
export function getTcList(query) {
  return request({
    url: '/whty/pricing/list',
    method: 'get',
    params: query
  })
}

// 标准套餐列表  套餐折扣用
export function getTcListZK(query) {
  return request({
    url: '/whty/discount/getAllBasePricing',
    method: 'get',
    params: query
  })
}

// 标准套餐列表
export function addTcList(query) {
  return request({
    url: '/whty/pricing',
    method: 'post',
    data: query
  })
}
// 修改标准套餐列表  查询单个列表
export function editTcList(query) {
  return request({
    url: '/whty/pricing/'+query,
    method: 'get',
  })
}
//修改单个列表
export function editTcListone(query) {
  return request({
    url: '/whty/pricing',
    method: 'put',
    data:query
  })
}

// 导出标准套餐列表
export function exportTcList(query) {
  return request({
    url: '/whty/pricing/export',
    method: 'get',
  })
}

// 批量上下架
export function upTcList(query) {
  return request({
    url: '/whty/pricing/upOrDown',
    method: 'post',
    params:query
  })
}


//套餐折扣管理
export function getTczkList(query) {
  return request({
    url: '/whty/discount/list',
    method: 'get',
    params: query
  })
}
//查询单条信息
export function tczkListOne(query) {
  return request({
    url: '/whty/discount/'+query,
    method: 'get',
  })
}
//新增单条信息
export function addTczkList(query) {
  return request({
    url: '/whty/discount',
    method: 'post',
    data: query
  })
}
//修改套餐折扣管理
export function editTczkList(query) {
  return request({
    url: '/whty/discount',
    method: 'put',
    data: query
  })
}

//删除套餐折扣管理某行
export function deleteTczkList(query) {
  return request({
    url: '/whty/discount/'+query,
    method: 'delete',
  })
}
//批量修改价格
export function updatePrice(query) {
  return request({
    url: '/whty/discount/updatePrice',
    method: 'post',
    params:query
  })
}
//获取运营商类型列表接口
export function getAgentUser(query) {
  return request({
    url: '/system/user/getAgentUser',
    method: 'post',
    params: query
  })
}
//导出折扣管理报表
export function exportTczk(query) {
  return request({
    url: '/whty/discount/export',
    method: 'get',
    params: query
  })
}

//导入折扣管理报表
export function importDataTczk(query) {
  return request({
    url: '/whty/discount/importData',
    method: 'post',
    data: query
  })
}







//企业客户销售折扣管理
export function getTcssList(query) {
  return request({
    url: '/whty/EnterpriseDiscount/list',
    method: 'get',
    params: query
  })
}
//新增类容
export function addTcssList(query) {
  return request({
    url: '/whty/EnterpriseDiscount',
    method: 'post',
    data: query
  })
}
//修改类容
export function editTcssList(query) {
  return request({
    url: '/whty/EnterpriseDiscount',
    method: 'put',
    data: query
  })
}
//查看某条的详细信息
export function lookTcssListOne(query) {
  return request({
    url: '/whty/EnterpriseDiscount/'+query,
    method: 'get',
  })
}
//获取下游客户列表
export function getEnterpriseUser(query) {
  return request({
    url: '/system/user/getEnterpriseUser',
    method: 'post',
  })
}

//删除某行  销售列表
export function deleteTcssList(query) {
  return request({
    url: '/whty/EnterpriseDiscount/'+query,
    method: 'delete',
  })
}
//根据运营商名称获取套餐列表
export function selectListByispType(query) {
  return request({
    url: '/whty/pricing/selectListByispType',
    method: 'post',
    params: query
  })
}



//终端销售折扣管理
//列表
export function getTczdList(query) {
  return request({
    url: '/whty/customerDiscount/list',
    method: 'get',
    params: query
  })
}
//新增类容
export function addTczdList(query) {
  return request({
    url: '/whty/customerDiscount',
    method: 'post',
    data: query
  })
}
//修改类容
export function editTczdList(query) {
  return request({
    url: '/whty/customerDiscount',
    method: 'put',
    data: query
  })
}

//删除套餐折扣管理某行
export function deleteTczdList(query) {
  return request({
    url: '/whty/customerDiscount/'+query,
    method: 'delete',
  })
}

//查看某条的详细信息
export function lookTczdListOne(query) {
  return request({
    url: '/whty/customerDiscount/'+query,
    method: 'get',
  })
}











